<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>math</title>
</head>
<body>
    <script>
        //1.ceil(x) 向上取整
        document.write(Math.ceil(4.4)+"<br>")
        //2.floor(x) 向下取整
        document.write(Math.floor(4.4)+"<br>")
        //3.round(x) 把数四舍五入为最接近的整数
        document.write(Math.round(4.1)+"<br>")
        document.write(Math.round(4.6)+"<br>")
        //4.random() 随机数,返回的是0.0-1.0之间范围(含头不含尾)
        document.write(Math.random()+"<br>")
        //5.pow(x,y) 幂运算 x的y此房
        document.write(Math.pow(2,3)+"<br>")
    </script>
</body>
</html>